/**
 * @Author ZhangCuirong
 * @Date 2025/9/2 8:41
 * @description:
 */
public class Solution231 {
    public boolean isPowerOfTwo(int n) {
        if (n <= 0) {
            return false;
        }else{
            return (n & (n - 1)) == 0;
        }
    }
}
